-- GENERATED SPELL FOR [Trained Razorbeak] --


function spell0_2657(pUnit, Event) --@Rend Flesh,n/a--
pUnit:FullCastSpellOnTarget(3147,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2657', 12000, 1)
end

function Sorts_2657(pUnit, Event)
local choix_sorts_2657 = math.random(0, 0)
if choix_sorts_2657 == 0 then
pUnit:RegisterEvent('spell0_2657', 1, 1)
end
end

function mob2657_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2657', math.random(1500, 3000), 1)
end

function mob2657_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2657_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2657_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2657, 1, 'mob2657_Action')
RegisterUnitEvent(2657, 2, 'mob2657_Leave')
RegisterUnitEvent(2657, 3, 'mob2657_Kill')
RegisterUnitEvent(2657, 4, 'mob2657_Die')
